<html xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="user-nav">
  <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
    <li class="layui-nav-item" th:classappend="${ option == 'home' } ?'layui-this':''">
      <a target="_blank" th:href="@{/user/home}">
        <i class="layui-icon">&#xe609;</i>
        我的主页
      </a>
    </li>
    <li class="layui-nav-item" th:classappend="${ option == 'index' } ?'layui-this':''">
      <a th:href="@{/user/index}">
        <i class="layui-icon">&#xe612;</i>
        用户中心
      </a>
    </li>
    <li class="layui-nav-item" th:classappend="${ option == 'jie' } ?'layui-this':''">
      <a th:href="@{/user/jie}">
        <i class="layui-icon">&#xe63c;</i>
        我的帖子
      </a>
    </li>
    <li class="layui-nav-item" th:classappend="${ option == 'set' } ?'layui-this':''">
      <a th:href="@{/user/set}">
        <i class="layui-icon" >&#xe620;</i>
        基本设置
      </a>
    </li>
    <li class="layui-nav-item" th:classappend="${ option == 'message' } ?'layui-this':''">
      <a th:href="@{/user/message}">
        <i class="layui-icon">&#xe611;</i>
        我的消息
      </a>
    </li>
  </ul>

  <div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
  </div>
  <div class="site-mobile-shade"></div>

  <div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
  </div>
  <div class="site-mobile-shade"></div>

</th:block>